home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / Windows / System32 / HTMLRE90.DLL / HTML / 11645 < prev    next >
Encoding:
Text File  |  2002-07-05  |  5.4 KB  |  243 lines

  1. <HTML>
  2.  
  3. <HEAD>
  4.     <LINK REL="stylesheet" TYPE="text/css" HREF="%1css/default.css">
  5. </HEAD>
  6.  
  7. <BODY TOPMARGIN="0" LEFTMARGIN="5" MARGINHEIGHT="0" MARGINWIDTH="5" onload="onDisabledCheck();">
  8.  
  9. <script language="Javascript">
  10. //LOCALIZATION STRINGS
  11. var alias_message = "If you continue you will lose any unsaved changes";
  12.  
  13. var _strNameAlert = "Please limit the name to 100 characters.";
  14. var _strFullNameAlert = "Please limit the full name to 100 characters.";
  15. var _strDescAlert = "Please limit the description to 256 characters.";
  16.  
  17. var _strLastAliasWarning = "Reassigning the only alias of this user will remove this user and its associated home folder from the system. Continue with reassign?"
  18.  
  19. </script>
  20.  
  21. <SCRIPT>
  22.  
  23. var alias_count =%2; 
  24. var hasChanged = false; 
  25.  
  26. var link = new Array(); 
  27. %3
  28.  
  29. function onAssignAlias()
  30. {
  31.     if (hasChanged)
  32.     {
  33.         if(!confirm(alias_message))
  34.             return;  
  35.     }
  36.     parent.parent.location = "%4"; 
  37. }
  38.  
  39. function changed()
  40. {
  41.     hasChanged = true; 
  42. }
  43.  
  44.  
  45. function onMoveAlias(link_index)
  46. {
  47.     if (hasChanged)
  48.     {
  49.         if(!confirm(alias_message))
  50.             return;  
  51.     }
  52.  
  53.     if (alias_count == 1)
  54.     {
  55.         if(!confirm(_strLastAliasWarning))
  56.             return; 
  57.     }
  58.  
  59.     parent.parent.location = link[link_index]; 
  60. }
  61.  
  62. function onSubmit()
  63. {
  64.     // check for account name, full name and description 
  65.     var strAccountName = document.forms.user_prop.userName.value;
  66.     var strFullName = document.forms.user_prop.userFullName.value;
  67.     var strDesc = document.forms.user_prop.userDesc.value;
  68.     if (strAccountName.length > 100)
  69.     {
  70.        alert(_strNameAlert);
  71.        return;
  72.     }
  73.     if (strFullName.length > 100)
  74.     {
  75.        alert(_strFullNameAlert);
  76.        return;
  77.     }
  78.     if (strDesc.length >= 256)
  79.     {
  80.        alert(_strDescAlert);
  81.        return;
  82.     }
  83.     
  84.     // Do the disabled aliases
  85.     var items = "";
  86.     var first = true; 
  87.     for(var i = 0; i < alias_count; i++)
  88.     {
  89.         if(!document.user_prop.elements["check"+i].checked)
  90.         {
  91.  
  92.             if (!first) 
  93.             {
  94.                 items += "+";
  95.             }
  96.             else
  97.             {
  98.                 first = false; 
  99.             }
  100.             items += document.user_prop.elements["check"+i].value; 
  101.         }
  102.     }
  103.     document.user_prop.disabled_aliases.value = items; 
  104.  
  105.     // Submit the properies
  106.     document.user_prop.submit();
  107. }
  108.  
  109. function onCancel()
  110. {
  111.     document.user_prop.reset();
  112. }
  113.  
  114. function onDisabledCheck()
  115. {
  116.     // Check to see if we can enable the account disabled flag
  117.     for(var i = 0; i < alias_count; i++)
  118.     {
  119.         if (document.user_prop.elements["check"+i].checked)
  120.         {
  121.             return; 
  122.         }
  123.     }
  124.  
  125.     // Got to here all aliases are disabled
  126.     document.user_prop.account_disabled.checked = true; 
  127. }
  128.  
  129. function onDisabledClick()
  130. {
  131.     // Determine whether the check box is actually checked
  132.     if (document.user_prop.account_disabled.checked)
  133.         disabled = true; 
  134.     else disabled = false; 
  135.  
  136.     // Run through the list of alias checkboxes
  137.     for(var i = 0; i < alias_count; i++)
  138.     {
  139.         if(document.user_prop.elements["check"+i].checked)
  140.         {
  141.             if (disabled)
  142.             {
  143.                 document.user_prop.elements["check"+i].checked = false; 
  144.             }
  145.         }
  146.         else
  147.         {
  148.             if (!disabled)
  149.             {
  150.                 document.user_prop.elements["check"+i].checked = true; 
  151.             }
  152.         }        
  153.     }
  154.     hasChanged = true; 
  155. }
  156.  
  157. </SCRIPT>
  158.  
  159. <FORM action="%5" method="post" name="user_prop" target="target_frame">
  160.  
  161. <table>
  162.   <tr>
  163.     <td class="list">Account Name:</td>
  164.     <td class="list"><input tabindex=1 name="userName" size=40 onchange="changed()" value="%6"></td>
  165.   </tr>
  166.  
  167.   <tr>
  168.     <td class="list">Full Name:</td>
  169.     <td class="list"><input tabindex=2 name="userFullName" size=40 onchange="changed()" value="%7"></td>
  170.   </tr>
  171.  
  172.   <tr>
  173.     <td class="list">Description:</td>
  174.     <td class="list"><textarea tabindex=3 wrap="virtual" name="userDesc" rows="7" cols="40" onchange="changed()">%8</textarea></td>
  175.   </tr>
  176.  
  177. </table>
  178.  
  179. <BR>
  180. Home Folder: <a class="list" tabindex=4 target="target_frame" href="%9">%10</a>
  181. <BR>
  182. <BR>
  183.  
  184. <BR>
  185.     Connection Type:
  186.     <table CELLSPACING="0" border=0 FRAME=box CELLPADDING="5">
  187.     <tr>
  188.         <td class="list"><input tabindex=10 type=radio name="user_type" value="0" onclick="changed()" %11><td class="list"> Concurrent User </td>
  189.     </tr>
  190.     <tr>
  191.         <td class="list"><input tabindex=11 type=radio name="user_type" value="1" onclick="changed()" %12><td class="list"> Named User </td>
  192.     </tr>
  193.     </table>
  194. <BR>
  195.  
  196. <input type=checkbox tabindex=12 name="account_disabled" onClick="onDisabledClick()"> Account is disabled 
  197.  
  198. <table CELLSPACING="5" width=80%>
  199. <tr> 
  200.     <td class="list" width=40%> Alias: </td> 
  201.     <td class="list" width=25%> Authentication Type: </td>
  202.     <td class="list" width=10%> Enabled: </td>
  203.     <td class="list" width=25% align=right>
  204.     <table cellpadding=0 border=0> 
  205.         <tr>
  206.             <td class="clsButton" align=middle nowrap>
  207.                 <div class="clsButton"><a href="javascript:onAssignAlias()" tabindex=-1>Assign Alias...</a></div>
  208.             </td>
  209.         </tr>
  210.     </table>
  211.     </td>    
  212. </tr>
  213.  
  214. <tr>
  215.     <td class="list" colspan = 4>
  216.     <hr size=0>
  217.     </td>
  218. </tr>
  219. %13
  220. </table>
  221.  
  222. <table align=center CELLPADDING="0" border=0 width=20%>
  223. <tr>
  224.     <td><table cellpadding=0 border=0> 
  225.         <tr>
  226.             <td class="clsButton" align=middle nowrap>
  227.                 <div class="clsButton"><a tabindex=13 href="javascript:onSubmit()">Update</a></div>
  228.             </td>
  229.  
  230.             <td class="clsButton" align=middle nowrap>
  231.                 <div class="clsButton"><a tabindex=14 href="javascript:onCancel()">Reset</a></div>  
  232.             </td>
  233.         </tr>
  234.     </table></td>
  235. </tr>    
  236. </table>
  237.  
  238. <input type="hidden" name="disabled_aliases">
  239. </form>
  240.  
  241. </BODY>
  242. </HTML>
  243.